home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / tls / tls026.dd.Z / tls026.dd / tmp / init.s3ccon next >
Encoding:
Text File  |  1992-06-30  |  824 b   |  55 lines

  1. :
  2. #
  3. #    init.s3ccon
  4. #
  5. #    Copyright (C) 1991 Xware.
  6. #
  7.  
  8. PATH=/bin:/usr/bin:/etc:/etc/conf/bin
  9. PERM=/etc/perms/inst            # OS (link kit) permlist
  10.  
  11. : ${OK=0} ${FAIL=1}
  12.  
  13. #
  14. # exit with the status passed as argument
  15. #
  16.  
  17. cleanup() 
  18. {
  19.     trap '' 1 2 3 15
  20.     exit $1
  21. }
  22.  
  23. #
  24. # main()
  25. #
  26.  
  27. cd /
  28.  
  29. trap 'echo "\nInterrupted! Exiting ..."; cleanup 1' 1 2 3 15
  30.  
  31. #
  32. # back up the original driver and copy the new one into place
  33. #
  34.  
  35. if [ -f /etc/conf/pack.d/vga/Driver.o -a ! -f /etc/conf/pack.d/vga/Driver.ORG ] ; then
  36.     cp /etc/conf/pack.d/vga/Driver.o /etc/conf/pack.d/vga/Driver.ORG
  37. fi
  38.  
  39. cp /etc/conf/pack.d/vga/Driver.o /etc/conf/pack.d/vga/Driver.org
  40.  
  41. if [ ! -f /etc/conf/pack.d/vga/space.c ] ; then
  42.     # ODT 1.1
  43.     cp /etc/conf/pack.d/vga/Driver.s3c11 /etc/conf/pack.d/vga/Driver.o
  44.  
  45.     #
  46.     # relink the kernel
  47.     #
  48.  
  49.     cd /etc/conf/cf.d
  50.     ./link_unix
  51. fi
  52.  
  53. cleanup 0
  54.  
  55.